package com.basker.pisces.domain.command.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.basker.pisces.domain.command.run.CommandRunner;

/**
 * 为{@link CommandRunner}类添加该注解，这样运行器会被sptingIOC管理
 *
 * @author hangwen
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.TYPE})
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public @interface Command {

}
